﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace Cloud.Core.Model
{
    /// <summary>
    /// 咨询表(Consult)
    /// </summary>
    public class Consult
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public Guid Id { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        public string Province { get; set; }
        /// <summary>
        /// 咨询人
        /// </summary>
        public string cName { get; set; }
        /// <summary>
        /// 咨询人公司
        /// </summary>
        public string cCompany { get; set; }
        /// <summary>
        /// 咨询人联系方式
        /// </summary>
        public string cPhone { get; set; }
        /// <summary>
        /// 咨询内容
        /// </summary>
        public string cContent { get; set; }
        /// <summary>
        /// 信息来源
        /// </summary>
        public string Source { get; set; }
        /// <summary>
        /// 反馈人
        /// </summary>
        public string fName { get; set; }
        /// <summary>
        /// 反馈内容
        /// </summary>
        public string fContent { get; set; }
     
        /// <summary>
        /// 创建人
        /// </summary>
        public string CreateUserId { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string ModifyUserId { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyDate { get; set; }

        public Consult()
        {
            this.Id = Guid.NewGuid();
            this.CreateDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            this.ModifyDate = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
        }
    }
}
